<template>
  <Calendar :months="currentMonth" @change="handleDayChange"></Calendar>
</template>

<script>
import Calendar from "@components/Calendar.vue";
export default {
  name: "CalendarPage",
  components: {
    Calendar,
  },
  data() {
    return {
      currentMonth: [
        "2023-08-02",
        "2023-08-04",
        "2023-08-05",
        "2023-08-06",
        "2023-08-12",
        "2023-08-14",
        "2023-08-18",
      ],
    };
  },
  methods: {
    handleDayChange(currentDay) {
      console.log("当前点击的天", currentDay);
    },
  },
};
</script>

<style></style>
